home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / src / dfan.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-28  |  2.6 KB  |  81 lines

  1. /***************************************************************************
  2. *
  3. *
  4. *                         NCSA HDF version 3.2r2
  5. *                            October 30, 1992
  6. *
  7. * NCSA HDF Version 3.2 source code and documentation are in the public
  8. * domain.  Specifically, we give to the public domain all rights for future
  9. * licensing of the source code, all resale rights, and all publishing rights.
  10. *
  11. * We ask, but do not require, that the following message be included in all
  12. * derived works:
  13. *
  14. * Portions developed at the National Center for Supercomputing Applications at
  15. * the University of Illinois at Urbana-Champaign, in collaboration with the
  16. * Information Technology Institute of Singapore.
  17. *
  18. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  19. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  20. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  21. *
  22. ****************************************************************************
  23. */
  24.  
  25. /*
  26. $Header: /hdf/hdf/v3.2r2/src/RCS/dfan.h,v 1.1 1992/08/25 21:40:44 koziol beta koziol $
  27.  
  28. $Log: dfan.h,v $
  29.  * Revision 1.1  1992/08/25  21:40:44  koziol
  30.  * Initial revision
  31.  *
  32. */
  33. /*------------------------------------------------------------------------------
  34.  * File:    dfan.h
  35.  * Purpose: header file for the Annotations set
  36.  * Invokes: df.h
  37.  * Contents: 
  38.  *  Structure definitions: DFANdirentry, DFANdirhead
  39.  *  Constant definitions: DFAN_LABEL, DFAN_DESC
  40.  * Remarks: none
  41.  *----------------------------------------------------------------------------*/
  42.  
  43. #ifndef DFAN_H                      /* avoid re-inclusion */
  44. #define DFAN_H
  45.  
  46. #include "hdf.h"
  47.  
  48. #define DFAN_LABEL  0
  49. #define DFAN_DESC   1
  50.  
  51. #define DFAN_DEFENTRIES 16          /* no of dir entries to add at a time */
  52.  
  53.     /* This structure stores an entry in the label/desc directory */
  54.     /* for a label/desc in the file, it gives the ref of the label/desc,
  55.         and the tag/ref of the data item to which the label/desc relates */
  56.  
  57. typedef struct {
  58.         uint16 annref;                  /* ref of annotation */
  59.         uint16 datatag, dataref;        /* tag/ref of data */
  60.     } DFANdirentry;
  61.  
  62.     /* This structure is a head node for the directory, which is organized as
  63.         as a linked list of arrays.  DFANdirentry is the structure of an
  64.         array element, while DFANdirhead is the list element */
  65. typedef struct DFANdirhead {
  66.         int32 nentries;
  67.         struct DFANdirhead *next;
  68.         DFANdirentry entries[1];        /* actually an arbitrary size array */
  69.     } DFANdirhead;
  70.  
  71. /* testing...
  72. #ifndef VMS
  73. int32 DFANIgetannlen();
  74. #else
  75. int32 _DFANIgetannlen();
  76. #endif
  77. ...tested */
  78.  
  79.  
  80. #endif /* DFAN_H */
  81.